<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}"></c:set>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style>
	h3{
		text-align:center;
	}
	table{
		margin:0 auto;
		width:980px;
		border:1px solid black;
		border-collapse:collapse;
	}
	td{
		border:1px solid black;
	}
	div{
		margin:0 auto;
		text-align:center;
	}
</style>
</head>
<body>
	<h3>用户管理</h3>
	<div>
		<a href="${ctx}/admin/role/addrole.jsp">新增</a>&nbsp;&nbsp;
		<a href="#">修改</a>&nbsp;&nbsp;
		<a href="#">删除</a>&nbsp;&nbsp;
		<a href="#">重置密码</a>&nbsp;&nbsp;
		<a href="#">退出管理后台</a>&nbsp;&nbsp;
		<a href="${ctx}/index">网站前台</a>&nbsp;&nbsp;
	</div>
	<table>
		<tr>
			<td><input type="checkbox" name="checkAll" id="checkAll"/></td>
			<td>编号</td>
			<td>角色名称</td>		
			<td>操作</td>
		</tr>
		<c:forEach items="${roleList}" var="obj">
			<tr>
				<td><input type="checkbox" name="checkAll" id="checkAll"/></td>
				<td>${obj.id}</td>				
				<td>${obj.roleName}</td>
				<td>
					<a href="${ctx}/role?type=get&id=${obj.id}">编辑</a>
					<a href="${ctx}/role?type=del&id=${obj.id}" onclick="return confirm('确定要删除？');">删除</a>
				</td>
			</tr>
		</c:forEach>
		
	</table>
</body>
</html>